package com.flca.frw.config;

import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * datat class to return composite data
 * @author nly36776
 *
 */
public class PropertyInfo
{
	private String propertyKey;
	private String actualValue;
	
	
	public PropertyInfo(String propertyKey, String actualValue)
	{
		super();
		this.propertyKey = propertyKey;
		this.actualValue = actualValue;
	}

	private List<Map<File, String>> values = new ArrayList<Map<File,String>>();

	/**
	 * @return the propertyKey
	 */
	public String getPropertyKey()
	{
		return propertyKey;
	}

	/**
	 * @param propertyKey the propertyKey to set
	 */
	public void setPropertyKey(String propertyKey)
	{
		this.propertyKey = propertyKey;
	}

	/**
	 * @return the actualValue
	 */
	public String getActualValue()
	{
		return actualValue;
	}

	/**
	 * @param actualValue the actualValue to set
	 */
	public void setActualValue(String actualValue)
	{
		this.actualValue = actualValue;
	}

	/**
	 * @return the values
	 */
	public List<Map<File, String>> getValues()
	{
		return values;
	}

	/**
	 * @param values the values to set
	 */
	public void setValues(List<Map<File, String>> values)
	{
		this.values = values;
	}
	
	public void add(File aFile, String aValue)
	{
		Map<File, String> map = new HashMap<File, String>();
		map.put(aFile, aValue);
		values.add(map);
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString()
	{
		return "[key=" + propertyKey + ", value=" + actualValue + ", otherValues=" + values + "]";
	}
	
	
}
